package hb.software.score.contoller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import hb.software.score.entity.Score;
import hb.software.score.service.ScoreManager;
import web.GenericController;

@Controller
@RequestMapping("/score")
public class ScoreController extends GenericController<Score, Long, ScoreManager> {
	ScoreManager scoreManager;

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/score/index";
		return result;
	}

	@Autowired
	public void setStudentManager(ScoreManager studentManager) {
		this.scoreManager = studentManager;
		this.manager = this.scoreManager;
	}

}

